cmake_minimum_required(VERSION 3.10.2)

set(PROJECT_NAME statics)
project(${PROJECT_NAME})

include(GNUInstallDirs)
include_directories("./auxiliary")
include_directories("./src")

set(AUX_SOURCE_FILES
        ./auxiliary/denoise.c
        ./auxiliary/waux.c)
set(AUX_HEADER_FILES ./auxiliary/waux.h)

set(SRC_SOURCE_FILES    ./src/conv.c
        ./src/cwt.c
        ./src/cwtmath.c
        ./src/hsfft.c
        ./src/real.c
        ./src/wavefilt.c
        ./src/wavefunc.c
        ./src/wavelib.c
        ./src/wtmath.c)
set(SRC_HEADER_FILES    ./src/conv.h
        ./src/cwt.h
        ./src/cwtmath.h
        ./src/hsfft.h
        ./src/real.h
        ./src/wavefilt.h
        ./src/wavefunc.h
        ./src/wtmath.h)

add_library( # Sets the name of the library.
        native-lib

        # Sets the library as a shared library.
        SHARED

        # Provides a relative path to your source file(s).
        native-lib.cpp ${AUX_SOURCE_FILES} ${AUX_HEADER_FILES} ${SRC_SOURCE_FILES} ${SRC_HEADER_FILES})

target_include_directories(
        native-lib
        PRIVATE
        ./include ./header ./auxiliary ./header
)


target_link_libraries( # Specifies the target library
        native-lib

        # Links the target library to the log library
        # included in the NDK.
        ${log-lib} )